package com.leef.oauth.data.pojo;

import com.alibaba.fastjson.annotation.JSONField;

/**
 * Created by IWALL on 2017/3/13.
 * {"access_token":"648ad376-de95-4a87-a2d8-6da53f3d0361","token_type":"bearer","refresh_token":"518d1270-985d-4cbb-aa0e-cf9f9c3efdd8","expires_in":38751,"scope":"read"}
 * {"access_token":"70bbaf6f-2f90-4da4-b7a0-3cdd69578c3d","token_type":"bearer","refresh_token":"518d1270-985d-4cbb-aa0e-cf9f9c3efdd8","expires_in":43199,"scope":"read"}
 */

public class Token {
    @JSONField(name = "access_token")
    private String accessToken;
    @JSONField(name = "refresh_token")
    private String refreshToken;

    public Token() {
    }

    public Token(String accessToken, String refreshToken) {
        this.accessToken = accessToken;
        this.refreshToken = refreshToken;
    }

    public String getAccessToken() {
        return accessToken;
    }

    public void setAccessToken(String accessToken) {
        this.accessToken = accessToken;
    }

    public String getRefreshToken() {
        return refreshToken;
    }

    public void setRefreshToken(String refreshToken) {
        this.refreshToken = refreshToken;
    }
}
